package syerit.core.utils
{
	public class StringUtils
	{
		public static function strToArr(string:String):Array
		{
			var arr:Array = string.split(",");
			return arr;
		}
		
		public static function strToBool(string:String):Boolean
		{
			if(string=="")return false;
			if(string=="false")return false
			return true
		}
		
		public static function arrToStr(array:Array):String
		{
			var str:String = "";
			for each(var s:String in array)
			{
				str += str + ",";
			}
			str = str.substr(str.length-2,1);
			return str;
		}
	}
}